package LW.org.model;

import java.util.Objects;


public class Room {
    private int roomId;
    private String roomLevel;
    private String roomType;
    private double roomPrice;
    private boolean roomStatus;

    public int getRoomId() {
        return roomId;
    }

    public void setRoomId(int roomId) {
        this.roomId = roomId;
    }

    public String getRoomLevel() {
        return roomLevel;
    }

    public void setRoomLevel(String roomLevel) {
        this.roomLevel = roomLevel;
    }

    public String getRoomType() {
        return roomType;
    }

    public void setRoomType(String roomType) {
        this.roomType = roomType;
    }

    public double getRoomPrice() {
        return roomPrice;
    }

    public void setRoomPrice(double roomPrice) {
        this.roomPrice = roomPrice;
    }

    public boolean isRoomStatus() {
        return roomStatus;
    }

    public void setRoomStatus(boolean roomStatus) {
        this.roomStatus = roomStatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Room that = (Room) o;
        return roomId == that.roomId &&
                Double.compare(that.roomPrice, roomPrice) == 0 &&
                roomStatus == that.roomStatus &&
                Objects.equals(roomLevel, that.roomLevel) &&
                Objects.equals(roomType, that.roomType);
    }

    @Override
    public int hashCode() {

        return Objects.hash(roomId, roomLevel, roomType, roomPrice, roomStatus);
    }

    @Override
    public String toString() {
        return "Room{" +
                "roomId=" + roomId +
                ", roomLevel='" + roomLevel + '\'' +
                ", roomType='" + roomType + '\'' +
                ", roomPrice=" + roomPrice +
                ", roomStatus=" + roomStatus +
                '}';
    }
}
